package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.ShopFreightFreeRule;
import com.addplus.townmall.server.api.model.town.expand.ShopFreightFreeRuleExpand;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopFreightFreeRuleMapper extends BaseAddMapper<ShopFreightFreeRule> {

    @Select("SELECT * FROM shop_freight_free_rule WHERE is_deleted = 0")
    List<ShopFreightFreeRuleExpand> getExpandPageList(@Param("page") Page page);
}
